﻿using System.ComponentModel.DataAnnotations;
using Abp.AutoMapper;
using Abp.Organizations;
using DualControl.Departments;

namespace DualControl.Application.Organizations.Dto
{

    [AutoMap(typeof(OrganizationUnit), typeof(Department))]
    public class CreateOrganizationUnitInput
    {        
        public long? ParentId { get; set; }

        [Required]
        [StringLength(OrganizationUnit.MaxDisplayNameLength)]
        public string DisplayName { get; set; }

        public  long? UserId { get; set; }
    }
}